package com.sicpa.system.mapper;

import com.sicpa.common.core.domain.entity.AssuranceBusinessDataRegisterSignature;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * AssuranceBusinessDataReportMapper
 * @author wmj
 */

public interface AssuranceBusinessDataRegisterSignatureMapper {

    /**
     * 新增签字注册师
     * @param assuranceBusinessDataRegisterSignatures
     */
    void insertSignatureRegistered(AssuranceBusinessDataRegisterSignature assuranceBusinessDataRegisterSignatures);

    /**
     * 删除字注册师
     * @param businessId
     */
    void deleteByBusinessId(Long businessId);

    /**
     * 批量插入注册会计师
     * @param signatureList
     */
    void batchInsertRegister(@Param("signatureList") List<AssuranceBusinessDataRegisterSignature> signatureList,@Param("businessId") Long businessId);

    /**
     * 查询注册会计师
     * @param assuranceBusinessDataRegisterSignature
     * @return
     */
    List<AssuranceBusinessDataRegisterSignature> selectRegisterList(AssuranceBusinessDataRegisterSignature assuranceBusinessDataRegisterSignature);

    /**
     * 查询注册会计师 去除重复名称
     * @param firmNameQuery
     * @return
     */
    List<AssuranceBusinessDataRegisterSignature> selectRegisterListByGroup(HashMap<String,Object> firmNameQuery);

    /**
     * 查询事务所注册会计师 去除重复名称
     * @param query
     * @return
     */
    List<HashMap<String,Object>> selectRegisterListByOffice(HashMap<String,Object> query);

    /**
     * 根据businessId查询签字注册师
     * @param businessId
     * @return
     */
    List<AssuranceBusinessDataRegisterSignature> selectAssuranceBusinessDataRegisterSignature(Long businessId);
}